package com.bupt.service.common;

import com.bupt.dto.sys.UserDto;
import com.bupt.exception.BaseException;

import javax.servlet.http.HttpServletRequest;

public interface DemandService {

    //添加需求
    Object addDemand(UserDto userDto, String name, String sourceId, String targetId, Double rate, String layer, Integer year,
                      String type, String protect, Integer protectLimit, String projectId) throws BaseException;


    //删除需求
    Object deleteDemand(UserDto userDto, String projectId, String demandId) throws BaseException;

    Object updateDemand(UserDto userDto, String projectId, String demandId, String name, Double rate, String layer, Integer year, String type, String protect, Integer protectLimit) throws BaseException;

    Object getDemandsList(UserDto userDto, String projectId) throws BaseException;
    Object getDemandsList( String projectId) throws BaseException;
}
